package com.seu.me.reflect;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by liangfeihu on 2018/8/29.
 */
public class MethodDemo extends MethodSuper implements Serializable {
    private int num = 2;
    private String str = "xixi";

    public int addResult(int addNum) {
        return num + addNum;
    }

    @Override
    public String toString() {
        return "MethodDemo [num=" + num + ", str=" + str + "]";
    }

    private List<String> test() {
        System.out.println("test");
        return new ArrayList<String>() {
            {
                add("hello");
            }
        };
    }
}
